package com.leo.blog.web.frontend;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/frontend", method = RequestMethod.GET)
public class FrontendController {
	@RequestMapping(value = "/index")
	public String index() {
		//前端首页
		return "frontend/index";
	}
	
	@RequestMapping(value = "/list")
	public String list() {
		//前端首页
		return "frontend/list";
	}
	
	@RequestMapping(value = "/top")
	public String top() {
		//首页头部
		return "frontend/top";
	}
	
	@RequestMapping(value = "/result")
	public String result() {
		//结果页
		return "frontend/result";
	}
	
	@RequestMapping(value = "/message")
	public String message() {
		//评论页
		return "frontend/message";
	}
	
	@RequestMapping(value = "/errorip")
	public String errorip() {
		//ip拉黑返回页
		return "frontend/error/errorip";
	}
}
